import {FormSchema} from '/@/components/Form'

export const schemas: FormSchema[] = [
  {
    field: 'depart3',
    component: 'JSelectDept',
    label: '选择部门—自定义值',
    helpMessage: ['component模式'],
    componentProps: {showButton: false,rowKey:'orgCode',primaryKey:'orgCode'},
    colProps: {
      span: 12,
    }
  },
  {
    field: 'depart3',
    component: 'JEllipsis',
    label: '选中部门',
    colProps: {span: 12},
  },

  {
    field: 'depart2',
    component: 'JSelectDept',
    label: '选择部门',
    helpMessage: ['component模式'],
    componentProps: {showButton: false},
    colProps: {
      span: 12,
    }
  },
  {
    field: 'depart2',
    component: 'JEllipsis',
    label: '选中部门',
    colProps: {span: 12},
  },

  {
    field: 'user2',
    component: 'JSelectUser',
    label: '用户选择组件',
    helpMessage: ['component模式'],
    componentProps: {
      labelKey: 'realname',
      rowKey: 'id',
      showSelectTable: false
    },
    colProps: {
      span: 12,
    },
  },
  {
    field: 'user2',
    component: 'JEllipsis',
    label: '选中用户',
    colProps: {span: 12},
  },
  {
    field: 'user3',
    component: 'JSelectUserByDept',
    label: '部门选择用户',
    helpMessage: ['component模式'],
    componentProps: {
      labelKey: 'realname',
      rowKey: 'username',
    },
    colProps: {
      span: 12,
    },
  },
  {
    field: 'user3',
    component: 'JEllipsis',
    label: '选中用户',
    colProps: {span: 12},
  },
  {
    field: 'role2',
    component: 'JSelectRole',
    label: '角色选择组件',
    helpMessage: ['component模式'],
    colProps: {
      span: 12,
    },
  },
  {
    field: 'role2',
    component: 'JEllipsis',
    label: '选中角色',
    colProps: {span: 12},
  },
  {
    field: 'equipment',
    component: 'LSelectEquipment',
    label: '仪器选择组件',
    helpMessage: ['component模式'],
    colProps: {span: 12},
    componentProps: {
      async: true,
      showSelectTable: true,
      labelKey: 'equipmentName',
      rowKey: 'id'
    },
  },
  {
    field: 'equipment',
    component: 'JEllipsis',
    label: '选择仪器',
    helpMessage: ['帮助信息','xxx'],
    colProps: {span: 12},
  },
  {
    field: 'material',
    component: 'LSelectMaterial',
    label: '物料选择组件',
    helpMessage: ['component模式'],
    colProps: {span: 12},
    componentProps: {
      async: true,
      showSelectTable: true,
      labelKey: 'textMember',
      rowKey: 'valueMember',
    },
  },
  {
    field: 'material',
    component: 'JEllipsis',
    label: '选择物料',
    helpMessage: ['帮助信息','xxx'],
    colProps: {span: 12},
  }
  ];
